-
-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix no-turbolinks ci #244
Fix no-turbolinks ci #244
Conversation
@robwise You might want to refactor this a tiny bit. |
Reviewed 7 of 7 files at r1. rakelib/dummy_apps.rake, line 11 [r1] (raw file): rakelib/run_rspec.rake, line 26 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. rakelib/dummy_apps.rake, line 11 [r1] (raw file): rakelib/run_rspec.rake, line 26 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. rakelib/run_rspec.rake, line 26 [r1] (raw file): Comments from the review on Reviewable.io |
And don't bundle with the option DISABLE_TURBOLINKS on.
ROR in SERVER PRERENDERING Encountered error: "TypeError: Cannot read property 'name' of undefined" when prerendering N/A (server_render_js called) with props: js_code was: (function() { var htmlResult = ''; var consoleReplayScript = ''; var hasErrors = false; try { htmlResult = (function() { return ReactOnRails.getComponent('HelloString').component.world(); })(); } catch(e) { htmlResult = ReactOnRails.handleError({e: e, name: null, jsCode: 'ReactOnRails.getComponent(\'HelloString\').component.world()', serverSide: true}); hasErrors = true; } consoleReplayScript = ReactOnRails.buildConsoleReplay(); return JSON.stringify({ html: htmlResult, consoleReplayScript: consoleReplayScript, hasErrors: hasErrors }); })() Object.<anonymous> ((execjs):27066:58) Object.<anonymous> ((execjs):27075:31) __webpack_require__ ((execjs):31:30) Object.<anonymous> ((execjs):26981:15) __webpack_require__ ((execjs):31:30) Object.<anonymous> ((execjs):5355:24) __webpack_require__ ((execjs):31:30) Object.<anonymous> ((execjs):59:19) __webpack_require__ ((execjs):31:30) (execjs):51:18
Probably not related to the react version Encountered error: "TypeError: Cannot read property 'name' of undefined" when prerendering HelloWorldWithLogAndThrow with props: {"helloWorldData":{"name":"Mr. Server Side Rendering"}} js_code was: (function() { var props = {"helloWorldData":{"name":"Mr. Server Side Rendering"}}; return ReactOnRails.serverRenderReactComponent({ name: 'HelloWorldWithLogAndThrow', domNodeId: 'HelloWorldWithLogAndThrow-react-component-0', props: props, trace: true, location: '/server_side_log_throw_raise' }); })() Object.<anonymous> ((execjs):27066:58) Object.<anonymous> ((execjs):27075:31) __webpack_require__ ((execjs):31:30) Object.<anonymous> ((execjs):26981:15) __webpack_require__ ((execjs):31:30) Object.<anonymous> ((execjs):5355:24) __webpack_require__ ((execjs):31:30) Object.<anonymous> ((execjs):59:19) __webpack_require__ ((execjs):31:30) (execjs):51:18
This change prints a useful message and outputs the file with the issue.
Debugging details: |
Reviewed 8 of 8 files at r2, 1 of 4 files at r4, 4 of 4 files at r5. rakelib/dummy_apps.rake, line 10 [r1] (raw file): Comments from the review on Reviewable.io |
Reviewed 1 of 4 files at r4. Comments from the review on Reviewable.io |
9824f3f
to
b992d2f
Compare
b992d2f
to
ca092b8
Compare
Reviewed 4 of 4 files at r7. Comments from the review on Reviewable.io |
👍😎 Review status: all files reviewed at latest revision, 1 unresolved discussion. Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. rakelib/dummy_apps.rake, line 10 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: 20 of 21 files reviewed at latest revision, all discussions resolved. Comments from the review on Reviewable.io |
to Gemfile.lock
Root cause of failures on CI might be that if gem turbolinks is installed, then we don't run the handlers for no-turbolinks.
However, that should only be affected by requiring of turbolinks.
Maybe we should change: